Rnoc\Retainful\Api\AbandonedCart\RestApi C

Total Complexity 123
Dependencies 9
Dependents 1
Total lines 728
Lines of code 400
Logical lines of code 232
Comment lines 225
Methods 45
Properties 23

Methods 45

Method Rating Maintainability Complexity Lines of code
getClientIp()
A
56 8 20
encryptData()
S
54 6 20
changeOrderStatus()
S
58 5 16
initStorage()
S
60 4 15
setCartToken()
S
59 4 14
getCustomerCheckoutDetails()
S
60 4 13
markOrderAsRecovered()
S
60 4 12
generateCartHash()
S
62 4 11
getUserAcceptLanguage()
S
62 4 11
__construct()
S
70 4 6
setSessionShippingDetails()
S
64 4 10
setCustomerBillingDetails()
S
64 4 10
setCartCreatedDate()
S
65 4 9
getUserAgent()
S
64 4 10
isOrderHasValidOrderStatus()
S
60 3 13
formatToIso8601()
S
61 3 12
retrieveCartToken()
S
62 3 11
isBuyerAcceptsMarketing()
S
64 3 11
generateCartToken()
S
56 2 17
isPendingRecovery()
S
68 3 7
getRetainfulApiUrl()
S
68 3 6
convertToCurrency()
S
71 3 6
userCartCreatedAt()
S
66 3 8
canTrackAbandonedCarts()
S
70 3 6
getCartToken()
S
67 2 8
getAddressMapFields()
S
60 1 15
retrieveUserIp()
S
67 2 8
isOrderInPendingRecovery()
S
67 2 7
isOrderRecovered()
S
67 2 7
considerOnHoldAsAbandoned()
S
74 2 4
considerCancelledAsAbandoned()
S
74 2 4
considerFailedAsAbandoned()
S
74 2 4
refreshFragmentsOnPageLoad()
S
74 2 4
decryptData()
S
62 2 10
syncCart()
S
65 2 9
formatDecimalPrice()
S
73 1 5
formatDecimalPriceRemoveTrailingZeros()
S
72 1 5
removeSessionShippingDetails()
S
81 1 3
removeSessionBillingDetails()
S
81 1 3
getRecoveryLink()
S
67 1 7
hashTheData()
S
75 1 4
formatUserIP()
S
74 1 4
isValidOrderStatusToResetCartToken()
S
75 1 4
getCurrentCurrencyCode()
S
75 1 4
getClientDetails()
S
68 1 7